package com.ruoyi.posts.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文章管理对象 posts
 * 
 * @author 丁
 * @date 2024-09-18
 */
public class Posts extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文章id */
    @Excel(name = "文章id")
    private Long id;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String title;

    /** 文章图片 */
    @Excel(name = "文章图片")
    private String imageUrl;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Long likes;

    /** 评论数 */
    @Excel(name = "评论数")
    private Long comments;

    /** 添加时间 */
    private Date addedTime;

    /** 文章详情 */
    @Excel(name = "文章详情")
    private String details;

    /** 更新时间 */
    private Date lastModified;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }
    public void setLikes(Long likes) 
    {
        this.likes = likes;
    }

    public Long getLikes() 
    {
        return likes;
    }
    public void setComments(Long comments) 
    {
        this.comments = comments;
    }

    public Long getComments() 
    {
        return comments;
    }
    public void setAddedTime(Date addedTime) 
    {
        this.addedTime = addedTime;
    }

    public Date getAddedTime() 
    {
        return addedTime;
    }
    public void setDetails(String details) 
    {
        this.details = details;
    }

    public String getDetails() 
    {
        return details;
    }
    public void setLastModified(Date lastModified) 
    {
        this.lastModified = lastModified;
    }

    public Date getLastModified() 
    {
        return lastModified;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("imageUrl", getImageUrl())
            .append("likes", getLikes())
            .append("comments", getComments())
            .append("addedTime", getAddedTime())
            .append("details", getDetails())
            .append("lastModified", getLastModified())
            .toString();
    }
}
